<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <style>
        .box{
            width: 200px;
            height: 200px;
            background-color: red;
            margin: 100px auto;
            
            transition: all 1s;
            animation: dh 1s infinite linear;
           
        }
        .box:hover{
            transform: rotate(30deg) scale(2);
            border-radius: 50%;
        }
        @keyframes dh{
            from{
                transform: rotate(0deg);
            }
            to{
                transform: rotate(360deg);
            }
        }
    </style>
</head>
<body>
    <div class="box"></div>
</body>
</html>